import cv2
image1=cv2.imread("man.jpg")
cv2.imshow("Man",image1)
image2=cv2.imread("cloud.jpg")
cv2.imshow("Cloud",image2)
rows,colmns,channel=image1.shape
image2=cv2.resize(image2,(colmns,rows))
result1=cv2.bitwise_and(image1,image2)
cv2.imshow('BitWiseAnd',result1)
result2=cv2.bitwise_or(image1,image2)
cv2.imshow('BitWiseAnd',result2)
result3=cv2.bitwise_xor(image1,image2)
cv2.imshow("BitWiseAnd",result3)
result4=cv2.bitwise_not(image1)
cv2.imshow("BitWiseAnd",result4)
cv2.waitKey()
cv2.destroyAllWindows()